package com.updesignsz.admin.service;

import com.updesignsz.admin.mapper.ProjectsMapper;
import com.updesignsz.admin.vo.form.ProjectsForm;
import com.updesignsz.commom.entity.Projects;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 项目
 * Creation date 2020-8-8 15:07:54
 */
@Service
public class ProjectsService {

	@Autowired
	private ProjectsMapper projectsMapper;


	public void deleteProjects(Integer id) {
		projectsMapper.deleteProjects(id);
	}

	public List<Projects> listAll(Projects type) {
		return projectsMapper.listAll(type);
	}

	public void saveProjects(Projects form) {
		projectsMapper.saveProjects(form);
	}

	public void updateProjects(Projects form) {
		projectsMapper.updateProjects(form);
	}

	public Projects getById(Integer id) {
		return projectsMapper.getById(id);
	}
}